package com.magicborrow.views;

import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.util.AttributeSet;
import android.view.View;
import android.widget.EditText;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;

import com.magicborrow.R;

/**
 * Created by ronaldo on 2016/6/8.
 */
public class SchoolView extends RelativeLayout{

    private LinearLayout llSearchOutside;
    private LinearLayout llSearch;
    private EditText etSchool;
    private RecyclerView mRecyclerView;
    private Context mContext;
    public SchoolView(Context context) {
        super(context);
        init(context);
    }

    public SchoolView(Context context, AttributeSet attrs) {
        super(context, attrs);
        init(context);
    }

    public SchoolView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        init(context);
    }

    private void init(Context context) {
        this.mContext=context;
        View view = View.inflate(context, R.layout.schoolview, null);
        llSearchOutside = (LinearLayout) view.findViewById(R.id.ll_search_outside);
        llSearch = (LinearLayout) view.findViewById(R.id.ll_search);
        etSchool = (EditText) view.findViewById(R.id.et_school);
//        mRecyclerView = (RecyclerView) view.findViewById(R.id.recyclerView);
    }

//    public void setData(List<SchoolEntity.SchoolData> data){

//    }
}
